package cn.wolfcode.luowowo.comment.repository;

import cn.wolfcode.luowowo.comment.domain.StrategyComment;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface StrategyCommentMongoRepository extends MongoRepository<StrategyComment, String> {

    /**
     * 通过攻略id查询评论分页.
     * @param detailId
     * @param pageable
     * @return
     */
    Page<StrategyComment> findByDetailId(Long detailId, Pageable pageable);
}
